package com.tbb.app.common.exception;

/**
 * 通用错误码
 *
 * @author LiuSenLin
 * @date 2020/2/29
 */
public enum CommonCode implements BaseErrorCode {

    C00000("00000", "操作成功"),
    C00001("00001", "操作失败"),
    C00002("00002", "登录过期"),
    C00003("00003", "参数验证失败"),
//    C00004("00004","非法的操作"),
//    C00005("00005","重复提交"),
//    C00006("00006","验证码错误"),
//    C00007("00007","验证码过期"),
//    C00008("00008","验证码过期"),
//    C00009("00009","根据部内信息系统安全要求,登录密码必须满足复杂度要求,请重置您的密码."),
//    C00010("00010","用户名或密码错误"),
//    C00011("00011","账户已冻结,请3小时后重试"),
    ;

    private final String code;

    private final String message;

    CommonCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
